//
//  WZTaskButton.m
//  WZEfengAndEtong
//
//  Created by wanzhao on 16/6/25.
//  Copyright © 2016年 wanzhao. All rights reserved.
//

#import "WZTaskButton.h"

@implementation WZTaskButton

/**设置按钮的文字对齐方式*/
- (void)setupButton {
    
    [self.titleLabel setTextAlignment:NSTextAlignmentLeft];
}

/**通过xib/sb创建*/
- (void)awakeFromNib {
    [super awakeFromNib];
    [self setupButton];
}

/**通过代码创建*/
- (instancetype)initWithFrame:(CGRect)frame {
    
    if (self = [super initWithFrame:frame]) {
        
        [self setupButton];
    }
    
    return self;
}


- (void)layoutSubviews {
    
    [super layoutSubviews];
    
    self.titleLabel.x = 15;
}

@end
